var answer = {};

function write() {
    var ls = document.getElementsByClassName("question-section-list")[0].childNodes;
    for (var i = 0; i < ls.length; i++) {
        let title = ls[i].getElementsByClassName("title")[0].textContent;
        if (!answer[title]) {
            continue;
        }
        let answerList = answer[title];
        let optionList = ls[i].getElementsByClassName("option-list")[0].childNodes;
        for (var j = 0; j < optionList.length; j++) {
            let option = optionList[j].getElementsByClassName("option-detail")[0].textContent;
            option = option.substring(option.indexOf(".") + 1);
            if (answerList.includes(option)) {
                optionList[j].click();
            }
        }
    }
}

write();